# Maintainer: Drew DeVault <sir@cmpwn.com>
pkgname=liblouis
pkgver=3.14.0
pkgrel=0
pkgdesc="Braille translator and back-translator"
url="http://liblouis.org/"
arch="all"
license="GPL-3.0-or-later"
makedepends="help2man python3"
subpackages="$pkgname-static $pkgname-dev $pkgname-bin:_bin $pkgname-doc"
source="
	$pkgname-$pkgver.tar.gz::https://github.com/liblouis/liblouis/releases/download/v$pkgver/liblouis-$pkgver.tar.gz
	"
options="!check" # Some unknown dependency is required

build() {
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--localstatedir=/var \
		--enable-ucs4
	make
}

check() {
	make check
}

package() {
	make DESTDIR="$pkgdir" install
}

_bin() {
	mkdir -p "$subpkgdir"/usr
	mv "$pkgdir"/usr/bin "$subpkgdir"/usr
}

sha512sums="53e533f82213c7c99038d2ae9049c529319897242fc46094dbe3a5a853f08a761159d8fefb7e39b98c6445efe0d89e25c1914e6ac506ddb6f2eb052cc2a8d813  liblouis-3.14.0.tar.gz"
